package com.beamfield.dao.steelplant;

import com.beamfield.model.SteelplantWeightDiameter;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;


public interface SteelplantWeightSettingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SteelplantWeightDiameter record);

    int insertSelective(SteelplantWeightDiameter record);

    SteelplantWeightDiameter selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SteelplantWeightDiameter record);

    int updateByPrimaryKey(SteelplantWeightDiameter record);

    long count(@Param("beamId") Long beamId);

    List<SteelplantWeightDiameter> select(@Param("beamId") Long beamId, @Param("offset") String offset, @Param("limit") String limit);

    SteelplantWeightDiameter selectByDadoIdAndGroupId(@Param("dado") String dado, @Param("group") BigDecimal group, @Param("beamId") Long beamId);

    SteelplantWeightDiameter selectByDiameter(String rebarDiameter);
}
